alternative makefile fix

Here's an alternative fix for the makefile which maintains the problemUtils.h dependency. I add 'out' to the library search path, which is maybe a bit weird, but perhaps we should compile the libraries to a directory like 'lib' and reserve 'out' for the demos?