Fixed bug where resources where not found when compiling.