Cleanup warnings and compilation options