Updated build settings

Removed the -g build option and added the -O option. Decreases run
times by ~2-3 times. Also added a cleanup of the *.o files.