Fix release build

Some include paths needed to be straightened out.
Fix some warnings on Release target

Still a lot of deprecation warnings that need to be taken care of.