resource manager

Decided to complete the complicated resource manager since its just
copied from the web, if it ends up being too complicated to use, which
it does seem at the moment, I will create simpler from scratch.

Also changed the project properties so that it finds the include files
and libraries from the project directory.