Ensure libpng gets built before prboom so configure finds it, and fix build with libpng 1.4.x (NULL defines removed). Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>