Resource directories defined on compile time

Now getting resource directory from cmake instead of hardcode
Also enabled RESDIR for Release builds.