Edited loadresource call to use the new resources.h file and cross-platform compatibility