Fix compile errors regading narrowing and pragmas on g++ 4.7.1.
Fix compile warnings regarding narrowing on GCC 4.7.1+.
Fix cmake policy warning.
Remove the 'engine' folder. It's not needed anymore.