Removed semicolon after #endif as it raises warnings with g++.