Added extremely strict compilation flags with the assumption that if the code compiles under these flags, it will work with *any* other compiler. Also fixed up a few styling inconsistencies.