Fix optional<T> on gcc 4.6