Fixed the dirty compiler for better portability.